<template>
  <h1>EL-组件-栅格布局</h1>
  <el-row>
    <el-col :span="8" style="border: 5px solid salmon;">111</el-col>
    <el-col :span="8" style="border: 5px solid royalblue;">222</el-col>
    <el-col :span="8" style="border: 5px solid yellow;">333</el-col>
  </el-row>
  <hr>
  <el-row :gutter="30">
    <el-col :span="12"><img src="imgs/rich.jpg" style="width: 100%"></el-col>
    <el-col :span="12"><img src="imgs/rich.jpg" style="width: 100%"></el-col>
  </el-row>
  <hr>
  <el-row :gutter="10">
    <el-col :span="4" v-for="item in 6"><img src="imgs/rich.jpg" style="width: 100%"></el-col>
  </el-row>
  <hr>
  <el-row :gutter="20">
    <el-col :span="4"><img src="imgs/rich.jpg" style="width: 100%"></el-col>
    <el-col :span="8"><img src="imgs/rich.jpg" style="width: 100%"></el-col>
    <el-col :span="12"><img src="imgs/rich.jpg" style="width: 100%"></el-col>
  </el-row>
  <hr>
  <el-row>
    <el-col :span="3" v-for="item in 8" style="border: 2px solid green">{{item}}</el-col>
  </el-row>
  <hr>
  <el-row>
    <el-col :span="20" :offset="4">
      <img src="imgs/rich.jpg" style="width: 100%">
    </el-col>
  </el-row>
  <h4>布局嵌套</h4>
  <el-row>
    <el-col :span="12" style="border: 5px solid red;">111</el-col>
    <el-col :span="12" style="border: 5px solid #000;">
      <el-row>
        <el-col :span="8" style="border: 5px solid yellow;">222</el-col>
        <el-col :span="8" style="border: 5px solid #fff;">222</el-col>
        <el-col :span="8" style="border: 5px solid green;">222</el-col>
      </el-row>
    </el-col>
  </el-row>
  <hr>
  <h1>我的主页</h1>
  <el-row :gutter="20">
    <el-col :span="8">
      <el-menu>
        <el-menu-item index="1">选项1</el-menu-item>
        <el-menu-item index="1">选项2</el-menu-item>
        <el-menu-item index="1">选项3</el-menu-item>
      </el-menu>
    </el-col>
    <el-col :span="16">
      <el-row :gutter="20">
        <el-col :span="8" v-for="item in 3"><img src="imgs/rich.jpg" style="width: 100%"></el-col>
      </el-row>
    </el-col>
  </el-row>
</template>

<script setup>

</script>

<style scoped>

</style>